@layout("/common/_container.html"){
<div class="ibox float-e-margins" xmlns="http://www.w3.org/1999/html">
    <div class="ibox-content">
        <form id="reportForm" method="post" action="${ctxPath}/accident/exportDocByT" accept="application/msword">
            <div class="form-horizontal">

                <input type="hidden" id="id" value="${item.id}">
                <input type="hidden" id="_header" value="Accept=application/msword">
                <h3>基本信息：</h3>
                <br/>
                <div class="row">
                    <div class="col-sm-6 b-r">
                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="accidentName" name="事故单位："/>
                            </div>
                        </div>

                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="accidentPlace" name="事故地点：" value="${item.lineName}${item.stationName}"/>
                            </div>
                        </div>
                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="trainNumber" name="事故车次：" value="${item.trainNumber}"/>
                            </div>
                        </div>
                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="accidentTypeName" name="事故类型：" value="${item.accidentTypeName}"/>
                            </div>
                        </div>
                    </div>

                    <div class="col-sm-6">
                        <div class="form-group">
                            <div class="col-sm-12">
                                <#input id="startTime" name="发生时间:"
                                        clickFun="laydate({istime: true, format:'YYYY-MM-DD hh:mm:ss'})" value="${item.startTime}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-12">
                            <#input id="endTime" name="结束时间:"
                                    clickFun="laydate({istime: true, format:'YYYY-MM-DD hh:mm:ss'})" value="${item.endTime}"/>
                            </div>
                    </div>
                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="accidentLevel" name="响应等级：" value="${item.accidentLevel}级"/>
                            </div>
                        </div>
                        <div class="form-group">

                            <div class="col-sm-12">
                                <#input  id="trapPeoNum" name="影响人数(人)：" value="${item.trapPeoNum}"/>
                            </div>
                        </div>
                </div>
                <hr/>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">现场情况：</label>
                        <div class="col-sm-11">
                        <textarea  name="locale" class="form-control" required=""
                                   rows="8" aria-required="true">${item.locale}</textarea>
                        </div>
                    </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">事故概況：</label>
                    <div class="col-sm-11">
                        <textarea  name="accidentSurvey" class="form-control" required=""
                                  aria-required="true"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">事故损失：</label>
                    <div class="col-sm-11">
                        <textarea id="aa" name="accidentDamage" class="form-control" required=""
                                  aria-required="true"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">初步原因：</label>
                    <div class="col-sm-11">
                        <textarea id="bb" name="accidentCause" class="form-control" required=""
                                  aria-required="true"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-1 control-label">采取措施：</label>
                    <div class="col-sm-11">
                        <textarea id="cc" name="accidentProcess" class="form-control" required="" rows="25" aria-required="true">${item.process}</textarea>
                    </div>
                </div>
                <div id="itemsArea">
                    <#button btnCss="info" name="增加负责人" icon="fa-plus" clickFun="AccidentReport.addItem()"/>
                    <#button btnCss="info" name="增加通讯录人员" icon="fa-plus" clickFun="AccidentReport.addContact()"/>
                </div>
            </div>
                </div>
        </form>

        <div class="row btn-group-m-t">
            <div class="col-sm-10">
                <#button btnCss="info" name="生成文档" id="ensure" icon="fa-check" clickFun="AccidentReport.submit()"/>
                <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="AccidentReport.close()"/>
            </div>
        </div>
    </div>

</div>
</div>

<script type="text/template" id="itemTemplate">
    <div class="row" name="dictItem" id="dictItem">
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-9">
                    <input type="text" id="name"  name="name" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-3 control-label">职务：</label>
                <div class="col-sm-9">
                    <input type="text" id="duty" name="duty" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label">联系电话：</label>
                <div class="col-sm-8">
                    <input type="text" id="telphone" name="telphone" class="form-control" required="" aria-required="true"/>
                </div>
            </div>
        </div>
        <div class="col-md-2">
            <#button btnCss="danger" name="删除" id="cancel" icon="fa-remove"
            clickFun="AccidentReport.deleteItem(event)"/>
        </div>
    </div>
</script>

<script src="${ctxPath}/static/modular/yjya/accident/accident_report.js"></script>
@}
